<?php if(!IS_AJAX){?>

<include file="Public:header" />
<div class="row">
  <div class="col-sm-12">
    <section class="panel">
      <div class="panel-body">
        <table class="table-bordered table" width="100%" border="0" cellspacing="0" cellpadding="0">
 <thead>
<tr>
  
            
            
            <td align="center">商品</td>
            
            <td align="center">昵称</td>
            <td align="center">内容</td> 
            <td align="center">头像</td>

            <td align="center">审核</td>
            <td align="center">发表时间</td>
            <td align="center">操作</td>
          </tr>
</thead>
          <tbody class="ajaxdatalist" id="ajaxdatalist">
            <?php }?>
            
            
            
            <?php if(IS_AJAX){?>
            <!-- 数据主体 -->
        <notempty name="list">    
            



          <volist name="list" id="vo"> 
          <tr class="data_list" id="ajaxdatalist-{$vo.id}">
            <td><a target="_blank" href="{:U('Product/edit', array('id' => $vo['product_id']))}"><img src="{:getThumbPath($vo['pimg_url'])}" width="80"></a></td>
            <td>{$vo.nickname}</td>
            
            <td>
            
            
            {$vo.level}星<br>
{$vo.content}
            </td>
            <td><img src="{$vo.img_url}" height="50"></td>
 

            <td align="center"><input updateurl="{:U('ajaxUpdate')}" field="status,{$vo.id}" type="checkbox" 
                    <eq name="vo['status']" value="1">checked="checked"</eq>
                    class="js-switch-teal"/></td>
            <td align="center">{:date('Y-m-d H:i:s',$vo['datetime'])}</td>
            <td align="center"><a href="javascript:void(0);" rel="{:U('edit',array('id'=>$vo['id']))}" width="600" class="OptionBtn" title="回复评论">回复</a> | <a href="javascript:void(0);" rel="{:U('delete',array('id'=>$vo['id']))}" class="deleteBtn" data-id="{$vo.id}">删除</a>
            
            </td>
          </tr>

        </volist>
<else/>
<tr>
<td colspan="7" align="center">暂无评论</td>
</tr>
</notempty>


            <?php }?>
            <!-- 数据主体结束 -->
            
            <?php if(!IS_AJAX){?>
          </tbody>
        </table>
        <div id="ajaxdatalistpages"></div>
      </div>
    </section>
  </div>

</div>
<include file="Public:footer" />
<style>
    .option a.btn{margin-top:5px;}
</style>
<form id="ajaxdatalistform"></form>
</body></html><?php }?>



